package com.hj.ct.parse;

import java.io.Serializable;

/**
 * 设备
 * 
 */
public class Device implements Serializable {
	private static final long serialVersionUID = -5522770683020681422L;
	private String deviceID; // 设备编号
	private String deviceName; // 设备名称
	private String deviceDesc; // 设备描述
	private double latitude; // 经度(对应地图经度,非实际经度)
	private double longitude; // 纬度(对应地图纬度,非实际纬度)
	private String img; // 背景图

	public String getDeviceID() {
		return deviceID;
	}

	public void setDeviceID(String deviceID) {
		this.deviceID = deviceID;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public String getDeviceDesc() {
		return deviceDesc;
	}

	public void setDeviceDesc(String deviceDesc) {
		this.deviceDesc = deviceDesc;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		if(img.startsWith("http://")){
			this.img = img;
		}else{
			this.img = "http://"+img;
		}
	}

}
